package com.czkt.springboot_mybatis_test.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.springboot_mybatis_test.entity.BasDict;
import com.czkt.springboot_mybatis_test.entity.vo.CstCustomerBasDict;
import com.czkt.springboot_mybatis_test.mapper.BasDictMapper;
import com.czkt.springboot_mybatis_test.service.IBasDictService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Service
public class BasDictServiceImpl extends ServiceImpl<BasDictMapper, BasDict> implements IBasDictService {
    @Resource
    BasDictMapper basDictMapper;

    @Override
    public List<BasDict> selectBasDictList(String dictId, String dictItem, Integer pageIndex, Integer pageSize) {
        return basDictMapper.selectBasDictList(dictId, dictItem, pageIndex, pageSize);
    }

    @Override
    public Integer selectBasDictCount(String dictId, String dictItem) {
        return basDictMapper.selectBasDictCount(dictId, dictItem);
    }

    @Override
    public BasDict selectBasDict(String dictId) {
        return basDictMapper.selectBasDict(dictId);
    }

    @Override
    public void toUpdateBasDict(BasDict basDict) {
        basDictMapper.toUpdateBasDict(basDict);
    }

    @Override
    public void deleteBasDict(String dictId) {
        basDictMapper.deleteBasDict(dictId);
    }

    @Override
    public void toInsertBasDict(BasDict basDict) {
        basDictMapper.toInsertBasDict(basDict);
    }

    @Override
    public List<BasDict> selectByDictType() {
        return basDictMapper.selectByDictType();
    }
}
